using System;
using System.Collections.Generic;

namespace OccurrencesCore.Repository
{
    public interface IBaseRepository<TEntity>
    {
        IList<TEntity> FindAll();
        TEntity FindById(int id);
        TEntity Create(TEntity entity);
		IList<TEntity> Create(IList<TEntity> entities);
        TEntity Update(TEntity entity);
		IList<TEntity> Update(IList<TEntity> entities);
        void Remove(int id);
        void Remove(TEntity entity);
        void Remove(IList<TEntity> entities);
        void Save();     
		IList<TEntity> PagedList(int pageNumber, int pageSize);
    }
}


